//
//  StragryLikeTableViewCell.m
//  project
//
//  Created by lanou on 15/11/7.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "StragryLikeTableViewCell.h"
#import <UIImageView+WebCache.h>

@implementation StragryLikeTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _imgView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 60, 60)];
       
        [self.contentView addSubview:_imgView];
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(80, 10, kWidth - 100, 60)];
        _titleLabel.numberOfLines = 0;
     //   _titleLabel.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}

-(void)configModel:(OtherTableViewModel *)model
{
    [_imgView sd_setImageWithURL:[NSURL URLWithString:model.cover_image_url]];
    _titleLabel.text = model.title;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
